﻿<controls:ChildWindow x:Class="AuroraPlatform.View.Level4.PictureWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
            Width="500" Height="550" Title="图片浏览" FontSize="13" FontFamily="Arial,Microsoft YaHei,NSimSun,SimHei" Language="zh-CN">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <ScrollViewer VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
            <Viewbox Stretch="Uniform" VerticalAlignment="Center" HorizontalAlignment="Center">
                <Image x:Name="image"/>
            </Viewbox>
        </ScrollViewer>
        <Button Content="关闭" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>